// //引入全局事件总线
// import mitt from 'mitt'
// const $bus = mitt()
// export default $bus

import { UserInfo } from '@/api/user/userInfo'
import { Question } from '@/api/test/wirttenTest'
import type { ExamHistory } from '@/api/test/examHistory'
import mitt from 'mitt'

type Events = {
  updateColors: { index: number, value: any },
  sendUserId: { userId: string },
  sendUserInfo: { row:UserInfo},
  sendQuestionInfo: { row:Question},
  sendExamHistoryInfo: { row:ExamHistory},
}

const $bus = mitt<Events>()

export default $bus